﻿using Zhp.Common.Swagger;

namespace Zhp.Api.Attributes
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ApiGroupAttribute : Attribute
    {
        public ApiGroupEnum GroupName { get; set; }
    }

    /// <summary>
    /// 菜单和swagger共用
    /// </summary>
    public enum ApiGroupEnum
    {
        [ApiGroupEnum(ApiGroupName = "无分组", IsDefault = true)]
        None,
        [ApiGroupEnum(ApiGroupName = "聊天管理", MenuIcon = "chat", Order = 1)]
        Chat,
        [ApiGroupEnum(ApiGroupName = "系统管理", MenuIcon = "setting", Order = 2)]
        Sys,
        [ApiGroupEnum(ApiGroupName = "流程管理", MenuIcon = "wf-manage", Order = 3)]
        Workflow,
        [ApiGroupEnum(ApiGroupName = "公式配置", MenuIcon = "formula", Order = 4)]
        Formula,
        [ApiGroupEnum(ApiGroupName = "消息管理", MenuIcon = "message-2", Order = 5)]
        Message,
        [ApiGroupEnum(ApiGroupName = "系统监控", MenuIcon = "monitor", Order = 6)]
        Monitor,
        [ApiGroupEnum(ApiGroupName = "公用", Order = 7)]
        Common
    }
}
